const allRoutes = [
  {
    path: "atatistics",
    component: () => import("pages/home/Atatistics"),
    name: "atatistics",
    meta: {
      fullPath: "/atatistics",
      icon: "el-icon-s-platform",
      name: "数据统计",
    },
  },
  {
    path: "attendance",
    component: () => import("pages/home/Attendance"),
    name: "attendance",
    meta: {
      fullPath: "/attendance",
      icon: "el-icon-s-data",
      name: "考勤管理",
    },
  },
  {
    path: "manage",
    component: () => import("pages/home/Manage"),
    name: "manage",
    redirect: "/manage/product",
    meta: {
      fullPath: "/manage",
      icon: "el-icon-s-grid",
      name: "学员管理",
    },
    children: [
      {
        path: "dormitory",
        component: () => import("pages/home/Manage/Dormitory"),
        name: "dormitory",
        meta: {
          fullPath: "/manage/dormitory",
          icon: "el-icon-eleme",
          name: "学员宿舍",
        },
      },
      {
        path: "product",
        component: () => import("pages/home/Manage/Product"),
        name: "product",
        meta: {
          fullPath: "/manage/product",
          icon: "el-icon-s-claim",
          name: "学员项目管理",
        },
      },
      {
        path: "profile",
        component: () => import("pages/home/Manage/Profile"),
        name: "profile",
        meta: {
          fullPath: "/manage/profile",
          icon: "el-icon-user",
          name: "学员资料",
        },
      },
    ],
  },
  {
    path: "mine",
    component: () => import("pages/home/Mine"),
    name: "mine",
    meta: {
      fullPath: "/mine",
      icon: "el-icon-help",
      name: "我的中心",
    },
  },
  {
    path: "users",
    component: () => import("pages/home/Users"),
    name: "users",
    meta: {
      fullPath: "/users",
      icon: "el-icon-s-operation",
      name: "用户管理",
    },
  },
  {
    path: "welcome",
    component: () => import("pages/home/Welcome"),
    name: "welcome",
    meta: {
      fullPath: "/welcome",
      icon: "el-icon-s-home",
      name: "管理首页",
    },
  },
];

export default allRoutes;
